package com.tongfusoft.web.core.service;

import java.util.List;

import com.tongfusoft.web.core.data.BaseData;

public interface IManagementService<T extends BaseData> {
	/**
	 * 新增
	 * @param obj
	 * @return
	 */
	public boolean add(T obj);
	
	/**
	 * 修改
	 * @param obj
	 * @return
	 */
	public boolean update(T obj);
	
	/**
	 * 删除
	 * @param obj
	 * @return
	 */
	public boolean remove(T obj);
	
	/**
	 * 批量新增
	 * @param list
	 * @return
	 */
	public boolean add(List<T> list);
	
	/**
	 * 批量删除
	 * @param list
	 * @return
	 */
	public boolean remove(List<T> list);
	
	/**
	 * 批量修改
	 * @param list
	 * @return
	 */
	public boolean update(List<T> list);
	
}
